##----------------------------------------------------------------------------
# Created with genmake.pl v1.1 on Tue Dec 29 03:57:31 2009
# genmake.pl home: http://muquit.com/muquit/software/
# Copryright: GNU GPL (http://www.gnu.org/copyleft/gpl.html)
##----------------------------------------------------------------------------
rm=/bin/rm -f
CC= gcc
DEFS=  
PROGNAME= csv2sql
INCLUDES=  -I.
LIBS= -lstdc++


DEFINES= $(INCLUDES) $(DEFS) -DSYS_UNIX=1
CFLAGS= -g $(DEFINES)

SRCS = main.cpp options.cpp parser.cpp scanner.cpp writer.cpp 

OBJS = main.o options.o parser.o scanner.o writer.o 

.c.o:
	$(rm) $@
	$(CC) $(CFLAGS) -c $*.c

all: $(PROGNAME)

$(PROGNAME) : $(OBJS)
	$(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)

clean:
	$(rm) $(OBJS) $(PROGNAME) core *~
